
class MessageError(Exception):


class MessageParseError(MessageError):


class HeaderParseError(MessageParseError):


class BoundaryError(MessageParseError):


class MultipartConversionError(MessageError, TypeError):


class CharsetError(MessageError):


class MessageDefect():

    def __init__(self, line = None):
        self.line = line




class NoBoundaryInMultipartDefect(MessageDefect):


class StartBoundaryNotFoundDefect(MessageDefect):


class FirstHeaderLineIsContinuationDefect(MessageDefect):


class MisplacedEnvelopeHeaderDefect(MessageDefect):


class MalformedHeaderDefect(MessageDefect):


class MultipartInvariantViolationDefect(MessageDefect):


